package org.agile2soft.nexoma.tapestry.encoder;

import org.agile2soft.nexoma.controller.ServicesGroupController;
import org.agile2soft.nexoma.entity.ServicesGroup;
import org.hibernate.SessionFactory;

import br.com.arsmachina.module.service.PrimaryKeyTypeService;
import br.com.arsmachina.tapestrycrud.hibernate.encoder.HibernateIntegerEncoder;

public class ServicesGroupEncoder extends HibernateIntegerEncoder<ServicesGroup> {

    public ServicesGroupEncoder(SessionFactory sessionFactory,
            ServicesGroupController controller) {
        super(sessionFactory, controller);
    }
//    public ServicesGroupEncoder(SessionFactory sessionFactory,
//            ServicesGroupController controller,
//            PrimaryKeyTypeService primaryKeyTypeService) {
//        super(sessionFactory, controller, primaryKeyTypeService);
//    }

    public String toLabel(ServicesGroup serviceGroup) {
        return serviceGroup.getName();
    }

}
